﻿using MediatR;
using T.Common.Domain.Common;

namespace RedDragon.ERP.API.Application.Commands.MaterialManagements
{
    /// <summary>
    /// 物料管理添加Command
    /// </summary>
    public class CreateMaterialManagementCommand:IRequest<Result>
    {
        /// <summary>
        /// 物料管理ID
        /// </summary>
        public int MaterialId { get; set; }
        /// <summary>
        /// 物料服务ID
        /// </summary>
        public int MaterialsServicesId { get; set; }
        /// <summary>
        /// 物料编码
        /// </summary>
        public string? MaterialCode { get; set; }
        /// <summary>
        /// 物料名称
        /// </summary>
        public string? MaterialName { get; set; }
        /// <summary>
        /// 物料类别ID
        /// </summary>
        public int? MaterialCategoryId { get; set; }
        /// <summary>
        /// 物料单位ID
        /// </summary>
        public int? MaterialUnitId { get; set; }
        /// <summary>
        /// 规格
        /// </summary>
        public string? Specifications { get; set; }
        /// <summary>
        /// 规格单位ID
        /// </summary>
        public int? SpecificationUnitId { get; set; }
        /// <summary>
        /// 包装规格
        /// </summary>
        public string? PackagingSpecifications { get; set; }
        /// <summary>
        /// 启动质检管理 1-默认；2-是；3-否
        /// </summary>
        public int? ISInspection { get; set; }
        /// <summary>
        /// 库存上限
        /// </summary>
        public decimal? InventoryLimit { get; set; }
        /// <summary>
        /// 库存下限
        /// </summary>
        public decimal? InventoryLowerLimit { get; set; }
        /// <summary>
        /// 存货科目
        /// </summary>
        public string? InventoryAccount { get; set; }
        /// <summary>
        /// 销货收入科目
        /// </summary>
        public string? SalesRevenueAccount { get; set; }
        /// <summary>
        /// 销货成本科目
        /// </summary>
        public string? SalesCostAccount { get; set; }
        /// <summary>
        /// 物料二维码
        /// </summary>
        public string? MaterialQRCode { get; set; }
        /// <summary>
        /// 状态 1-有效；2-无效
        /// </summary>
        public int IsStatus { get; set; }
        /// <summary>
        /// 是否删除 1-未删除；2-删除
        /// </summary>
        public int IsDel { get; set; }
        /// <summary>
        /// 审核状态 1-未提交；2-已审批；3-已提交
        /// </summary>
        public int AuditStatus { get; set; }
        /// <summary>
        /// 创建人
        /// </summary>
        public string? CreatedOwner { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime? CreatedTime { get; set; }

        /// <summary>
        /// 修改人
        /// </summary>
        public string? UpdateOwner { get; set; }

        /// <summary>
        /// 修改时间
        /// </summary>
        public DateTime? UpdateTime { get; set; }

        /// <summary>
        /// 审核人
        /// </summary>
        public string? ExamineOwner { get; set; }

        /// <summary>
        /// 修改时间
        /// </summary>
        public DateTime? ExamineTime { get; set; }
    }
}
